#pragma once

#include <string>
#include <map>

struct TermData
{
	unsigned int index;
	std::string name;
	unsigned int df;
	unsigned int cf;
	unsigned int begin;
};

class TermManager
{
public:
	TermManager(std::string& filename);
	~TermManager();
	TermData& FindTermData(std::string& name);
private:
	typedef std::map<std::string, int> TermMap;
	TermMap m_Dictionary;
	TermData* m_Data;
};